﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;

namespace HyperV
{
    partial class VMHelper
    {
        ManagementScope Scope;

        public VMHelper(String path)
        {
            //@"\\bull002.ad.griddynamics.net\root\virtualization"
            ManagementScope scope = new ManagementScope(path, null);
            scope.Options.Impersonation = ImpersonationLevel.Impersonate;
            scope.Connect();
            this. Scope = scope;
        }
    }
}
